"""tttest URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from cmdb import views
from cmdb.api import security
from cmdb.api import user
from cmdb.api import error
from cmdb.api import game
from cmdb.api import red_packet
from cmdb.api import file


urlpatterns = [
    path('admin', admin.site.urls),
    path('index', views.index),
    path('welcome', views.welcome),
    path('login', views.login),
    path('login_action', views.login_action),
    path('users', views.users),
    path('test_json', views.test_json),
    path('logout', views.logout),
    path('websocket', views.test_websocket),

    path('api/pk', security.request_pk),
    path('api/user/login', user.login),
    path('api/user/logout', user.logout),
    path('api/error/no_certification', error.no_certification),
    path('api/error/token_is_null', error.token_is_none),
    path('api/error/token_is_not_equal_local', error.token_is_not_equal_to_local),
    path('api/user/my_balance', user.my_balance),
    path('api/game/query_all', game.query_all),
    path('api/game/add', game.add),
    path('api/game/get_game_difficulty', game.get_game_difficulty_detail),
    path('api/packet/add', red_packet.send_packet),
    path('api/packet/delete', red_packet.delete),
    path('api/packet/get_packet', red_packet.get_packet),
    path('api/packet/grab_packet', red_packet.grab_packet),
    path('api/packet/get_my_send_packet', red_packet.get_my_send_packet),
    path('api/packet/get_packet_grab_detail', red_packet.get_packet_grab_detail),
    path('api/file/md5', file.file_md5),

]
